#ifndef ALARMITEMWIDGET_H
#define ALARMITEMWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QHBoxLayout>
#include <QPixmap>
#include "common.h"

class AlarmItemWidget : public QWidget {
    Q_OBJECT
public:
    explicit AlarmItemWidget(QWidget *parent = nullptr);
    void updateContent(const AlarmData &data);

private:
    void applyStyle(int level);

private:
    QLabel *m_iconLabel;
    QLabel *m_contentLabel;
    QString m_styleTemplate;
};

#endif // ALARMITEMWIDGET_H
